home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-11-08 | 2.1 KB | 82 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: OvalShp.h
- // Release Version: $ 1.0d11 $
- //
- // Author: Henri Lamiraux
- //
- // Copyright: © 1993, 1995 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef OVALSHP_H
- #define OVALSHP_H
-
- #ifndef CONSTANT_H
- #include "Constant.h"
- #endif
-
- #ifndef BASESHP_H
- #include "BaseShp.h"
- #endif
-
- #ifndef BOUNDSHP_H
- #include "BoundShp.h"
- #endif
-
- // ----- Foundation Layer -----
-
- #ifndef FWRUNTYP_H
- #include "FWRunTyp.h"
- #endif
-
- //========================================================================================
- // Forward Declarations
- //========================================================================================
-
- #if FW_LIB_EXPORT_PRAGMAS
- #pragma import on
- #endif
- /*class FW_CLASS_ATTR ODFacet;
- class FW_CLASS_ATTR ODShape;
- class FW_CLASS_ATTR FW_CGraphicContext;
- class FW_CLASS_ATTR FW_CRect;
- class FW_CLASS_ATTR FW_PInk;
- class FW_CLASS_ATTR FW_PStyle;
- class FW_CLASS_ATTR FW_CMouseEvent;*/
- #if FW_LIB_EXPORT_PRAGMAS
- #pragma import off
- #endif
-
- //class FW_CLASS_ATTR CDrawFacetClipper;
-
- //========================================================================================
- // class COvalShape
- //========================================================================================
-
- class FW_CLASS_ATTR COvalShape : public CBoundedShape
- {
- public:
- FW_DECLARE_CLASS
-
- public:
- COvalShape();
- COvalShape(FW_CReadableStream& archive);
- virtual ~COvalShape();
-
- // ----- Selection
- virtual FW_Boolean HitTest(Environment *ev, FW_CGraphicContext& gc, const FW_CMouseEvent& theMouseEvent) const;
- virtual void RenderShape(Environment* ev, ODFacet* facet, FW_CGraphicContext& gc);
-
- // ----- Shape -----
- virtual void GetClipRegion(Environment* ev, ODShape* clipRegion);
- virtual ODShape* CreateShapeOutline(Environment *ev);
-
- // ----- Archiving -----
- static void* Read(FW_CReadableStream& archive);
-
- private:
- virtual void OutlineShape(FW_CGraphicContext& gc, const FW_PInk& ink, const FW_PStyle& style, const FW_CRect& rect);
- };
-
- #endif